package com.ys.openapi.process;

/**
 * 我的流程，进行中、已完成、已作废
 */
public class RequestLCList {
    //workflowName=&workflowCode=&unitType=&startTime=&endTime=&originatorName=&workflowTplName=&activityName=&participant=
    // &participantName=&instanceState=CANCELED&page=0&size=20


    //instanceState=PROCESSING,EXCEPTION,DRAFT  进行中
    //instanceState=COMPLETED  已完成
    //instanceState=CANCELED   //已作废
    private int flag=2;//状态标记，0:已作废;1:已完成;2:进行中
    private String workflowName="";
    private String workflowCode="";
    private String unitType="";
    private String startTime="";
    private String endTime="";
    private String originatorName="";
    private String workflowTplName="";
    private String activityName="";
    private String participant="";
    private String participantName="";
    private String instanceState="PROCESSING,EXCEPTION,DRAFT";
    private int page=0 ;
    private int size=20;

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
        if(flag==0){
            this.instanceState="CANCELED";
        }
        if(flag==1){
            this.instanceState="COMPLETED";
        }
        if(flag==2){
            this.instanceState="PROCESSING,EXCEPTION,DRAFT";
        }
    }

    public String getWorkflowName() {
        return workflowName;
    }

    public void setWorkflowName(String workflowName) {
        this.workflowName = workflowName;
    }

    public String getWorkflowCode() {
        return workflowCode;
    }

    public void setWorkflowCode(String workflowCode) {
        this.workflowCode = workflowCode;
    }

    public String getUnitType() {
        return unitType;
    }

    public void setUnitType(String unitType) {
        this.unitType = unitType;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getOriginatorName() {
        return originatorName;
    }

    public void setOriginatorName(String originatorName) {
        this.originatorName = originatorName;
    }

    public String getWorkflowTplName() {
        return workflowTplName;
    }

    public void setWorkflowTplName(String workflowTplName) {
        this.workflowTplName = workflowTplName;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getParticipant() {
        return participant;
    }

    public void setParticipant(String participant) {
        this.participant = participant;
    }

    public String getParticipantName() {
        return participantName;
    }

    public void setParticipantName(String participantName) {
        this.participantName = participantName;
    }

    public String getInstanceState() {
        return instanceState;
    }

    public void setInstanceState(String instanceState) {
        this.instanceState = instanceState;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "?" +"workflowName="+workflowName+"&workflowCode="+workflowCode+"&unitType="+unitType+"&startTime="+startTime+"&endTime="+endTime+
                "&originatorName="+originatorName+"&workflowTplName="+workflowTplName+"&activityName="+activityName+"&participant="+participant+
                "&participantName="+participantName+"&instanceState="+instanceState+"&page="+page+"&size="+size;
    }
}
